home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / programer2 / pari2 / pari / other / Makefile_4 < prev    next >
Makefile  |  1991-10-09  |  3KB  |  142 lines

  1. # Makefile for gp on sun4
  2.  
  3. # Change these installation directories to suit your needs
  4.  
  5. LIBDIR = /usr/local/lib
  6. BINDIR = /usr/local/bin
  7. INCLUDEDIR = /usr/include/pari-include
  8.  
  9. CC = cc
  10.  
  11. # if you use CC=gcc, you must add -traditional in the compilation options
  12. # of plot.o and replace -O4 in CFLAGS by -O.
  13. # If you want to debug gp yourself, you can also add the -g
  14. # option in CFLAGS. However, remember that, while gcc accepts -g and -O
  15. # simultaneously, cc does not.
  16.  
  17. CFLAGS = -O4 -c
  18.  
  19. OBJS=mp.o sparc.o anal.o alglin1.o alglin2.o base.o arith1.o arith2.o bibli1.o bibli2.o elliptic.o es.o gen1.o gen2.o gen3.o init.o errmessages.o helpmessages.o polarit1.o polarit2.o trans1.o trans2.o trans3.o version.o
  20.  
  21. # Be sure to "make clean" before doing a
  22. # make on a different architecture
  23.  
  24. all:    genpari.h gp
  25.  
  26. genpari.h:    genpariother.h
  27.     rm -f genpari.h;ln -s genpariother.h genpari.h
  28.  
  29. gp:    gp.o $(OBJS) plot.o genpari.h
  30.     $(CC) -O -o gp gp.o $(OBJS) plot.o -lm -lsuntool -lsunwindow -lpixrect
  31.  
  32. # if you are using XWindows rather than suntools, you should link
  33. # link plot.c to plot.X rather than plot.sun below, and replace the line above by
  34. # $(CC) -O -o gp gp.o $(OBJS) plot.o -lm -lX11
  35.  
  36. mp.o:    mp.c
  37.     $(CC) $(CFLAGS) mp.c
  38.  
  39. sparc.o:    sparc.s
  40.     as -P -o sparc.o sparc.s
  41.  
  42. gp.o:    gp.c
  43.     $(CC) $(CFLAGS) gp.c 
  44.  
  45. alglin1.o:    alglin1.c
  46.     $(CC) $(CFLAGS) alglin1.c
  47.  
  48. alglin2.o:    alglin2.c
  49.     $(CC) $(CFLAGS) alglin2.c
  50.  
  51. anal.o:    anal.c
  52.     $(CC) $(CFLAGS) anal.c
  53.  
  54. arith1.o:    arith1.c
  55.     $(CC) $(CFLAGS) arith1.c
  56.  
  57. arith2.o:    arith2.c
  58.     $(CC) $(CFLAGS) arith2.c
  59.  
  60. base.o:    base.c
  61.     $(CC) $(CFLAGS) base.c
  62.  
  63. bibli1.o:    bibli1.c
  64.     $(CC) $(CFLAGS) bibli1.c
  65.  
  66. bibli2.o:    bibli2.c
  67.     $(CC) $(CFLAGS) bibli2.c
  68.  
  69. elliptic.o:    elliptic.c
  70.     $(CC) $(CFLAGS) elliptic.c
  71.  
  72. es.o:    es.c
  73.     $(CC) $(CFLAGS) es.c
  74.  
  75. gen1.o:    gen1.c
  76.     $(CC) $(CFLAGS) gen1.c
  77.  
  78. gen2.o:    gen2.c
  79.     $(CC) $(CFLAGS) gen2.c
  80.  
  81. gen3.o:    gen3.c
  82.     $(CC) $(CFLAGS) gen3.c
  83.  
  84. init.o:    init.c
  85.     $(CC) $(CFLAGS) init.c
  86.  
  87. errmessages.o:    errmessages.c
  88.     $(CC) $(CFLAGS) errmessages.c
  89.  
  90. helpmessages.o:    helpmessages.c
  91.     $(CC) $(CFLAGS) helpmessages.c
  92.  
  93. plot.c:    plot.sun
  94.     rm -f plot.c;ln -s plot.sun plot.c
  95.  
  96. # if you are using XWindows, replace plot.sun by plot.X in the two lines above
  97.  
  98. plot.o:        plot.c
  99.     $(CC) $(CFLAGS) plot.c
  100.  
  101. plotdummy.o:        plotdummy.c
  102.     $(CC) $(CFLAGS) plotdummy.c
  103.  
  104. polarit1.o:    polarit1.c
  105.     $(CC) $(CFLAGS) polarit1.c
  106.  
  107. polarit2.o:    polarit2.c
  108.     $(CC) $(CFLAGS) polarit2.c
  109.  
  110. trans1.o:    trans1.c
  111.     $(CC) $(CFLAGS) trans1.c
  112.  
  113. trans2.o:    trans2.c
  114.     $(CC) $(CFLAGS) trans2.c
  115.  
  116. trans3.o:    trans3.c
  117.     $(CC) $(CFLAGS) trans3.c
  118.  
  119. version.o:    versionsparc.c
  120.     $(CC) $(CFLAGS) -o version.o versionsparc.c
  121.  
  122. manual:    tex/users.tex tex/index.tex
  123.      (cd tex;tex users;\
  124.       rm -f users.std;sort -f users.idx > users.std;\
  125.       tex index;rm -f users.idx)
  126.  
  127. install:    plotdummy.o
  128.     install -c genpari.h $(INCLUDEDIR)
  129.     install -c gencom.h  $(INCLUDEDIR)
  130.     install -c genport.h $(INCLUDEDIR)
  131.     install -c erreurs.h $(INCLUDEDIR)
  132.     ar r libpari.a $(OBJS) plotdummy.o
  133.     install libpari.a $(LIBDIR)
  134.     ranlib $(LIBDIR)/libpari.a
  135.     install -c -s gp $(BINDIR)
  136.  
  137. clean:    
  138.     -\rm *.o libpari.a gp genpari.h *.log *.dvi *.std *.idx *.toc
  139.     (cd tex;rm -f *.log *.dvi *.std *.idx *.toc)
  140.  
  141.  
  142.